import { createAxiosByinterceptors } from './instance';

const request = createAxiosByinterceptors({
  baseURL: 'api/',
});

// lodaing配置
export const appList = (params: any): Promise<any> =>
  request.get('/list', { params }); // 不需要默认的全局loading效果可配置loading为false关闭 loading默认为true

// 文件下载
export const exportGoods = (data: any) =>
  request.post('/export', data, {
    responseType: 'blob',
  });
